//
//  COHomeListModel.swift
//  CocoProject
//
//  Created by Ruthless on 2023/8/19.
//

import UIKit
import HandyJSON

class COHomeListModel: NSObject, HandyJSON {
    var id = 0
    var userId = 0
    var photo = ""
    var nickName = ""
    var sculpture = ""
    var content = ""
    var type: FoodType = .italy
    var level = ""
    var likes = 0
    var gifts = 0
    var like = false
    var follow = false
    var createDate = Date()
    
    var cellSize: CGSize = CGSize(width: 100, height: 100) {
        didSet {
            if oldValue != cellSize {
                cellChange?()
            }
        }
    }
    
    var cellChange: (()->Void)?
    
    required override init() {
    }
}
